﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Wicresoft.UnifyShow.Business.Interface;
using Microsoft.Practices.Unity;

namespace Wicresoft.UnifyShow.Portal
{
    public class HomeController : BaseController
    {
        private IBusinessSystemInfo BusinessSystemInfoService;

        [InjectionConstructor]
        public HomeController(IBusinessSystemInfo bsinfo)
        {
            BusinessSystemInfoService = bsinfo;
        }


        //
        // GET: /Home/
        
        public ActionResult Index(int? bid,int? sid)
        {
            BusinessInfo bi = new BusinessInfo();
            bi.BusinessSytemID = "111";
            bi.LazyLoad = true;
            bi.ParentAction = "Index";
            bi.ParentController = "Home";
            bi.SiteID = "123";
            ViewData["w_SystemInfo"] = bi;


            BusinessAvailabilityInfo ba = new BusinessAvailabilityInfo();
            ba.BusinessSytemID = bid == null ? null : bid.ToString();
            ba.LazyLoad = true;
            ba.ParentAction = "Index";
            ba.ParentController = "Home";
            ba.SiteID = sid == null ? null : bid.ToString();
            ViewData["w_SystemAvailability"] = ba;

            return View((object)User2.Identity.Name);
        }

    }
}
